package com.service;

import com.dao.DicDao;
import com.pojo.Dic;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DicService {

    @Resource
    private DicDao dicDao;

    public List<Dic> getListByType(String type) {
        Dic dic = new Dic();
        dic.setType(type);
        return dicDao.select(dic);
    }



}
